home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util1
/
memdv371.lha
/
memory-device
/
source
/
smakefile
< prev
Wrap
Makefile
|
1995-12-21
|
5KB
|
205 lines
#!sc:c/smake
#
#####################################################################
#
# $VER: smakefile 6.4 (20 Dec 1995)
#
# memory.device - direct memory access
#
# (C) Copyright 1995 Marius Gröger
# All Rights Reserved
#
# Inspired by z2ram device in Linux/68k/Amiga
#
# $HISTORY:
#
# 20 Dec 1995 : 001.000 : created
#
#####################################################################
#####################################################################
#
# installation drawer and names of device
#
INSTALL_DIR = EXT:Devs
DEVICE_DIR = /DEVS
BASENAME = memory-device
RELNAME = memdev
NAME = memory.device
VERSION = 37
#
#####################################################################
#####################################################################
#
# Aminet infos
#
AN_AUTHOR = groeger@gundel.zdv.uni-mainz.de
AN_UPLOADER = groeger@gundel.zdv.uni-mainz.de
AN_SHORT = Uses 16bit RAM as swap space for VMM
AN_TYPE = disk/misc
#
#####################################################################
#####################################################################
#
# following stuff is your configuration
#
LIBS = LIB LIB:amiga.lib LIB lib:sc.lib LIB lib:debug.lib
CINCLUDES = INCDIR "NETINCLUDE:"
ASMINCLUDES = INCDIR="INCLUDEA:" INCDIR="NETINCLUDE:"
CPUSUFFIX = 020 # 000 010 020 030 040 ANY
CPUCCOPT = CPU=68$(CPUSUFFIX)
CP = C:Copy
MV = C:Rename
RM = C:Delete >NIL:
LD = sc:c/slink
CC = sc:c/sc
AS = sc:c/sc
MAKE = sc:c/smake
BUMPREV = C:bumprev
SETREV = C:SetRev
PROTECT = protect
BUILD_AMINET= /s/build-aminet
ECHO = Echo
#
#####################################################################
#####################################################################
#
# assembler/compiler flags
#
# this applies to normal and optimized compilation:
#
STDFLAGS = $(CINCLUDES) NOMULTIPLEINCLUDES ERRREXX COMMENTNEST NOSTKCHK NOCHKABORT\
SMALLCODE SMALLDATA VERBOSE NOICONS STRICT ANSI
#
# this applies only to normal compilation:
#
NORMCFLAGS = $(STDFLAGS)
#
# this applies only to optimized compilation:
#
OPTCFLAGS = $(STDFLAGS) $(CPUCCOPT) PARAMETERS=REGISTERS OPT OPTTIME OPTINLINE\
OPTSCHEDULE STRINGMERGE STRUCTUREEQUIVALENCE
#
# this applies to assembler compilation
#
AFLAGS = $(ASMINCLUDES) VERBOSE SMALLCODE SMALLDATA
#
#####################################################################
#####################################################################
#
# linkage flags
#
LDFLAGS = NOICONS SC SD ND $(LIBS) TO
OPTLDFLAGS = NOICONS SC SD ND $(LIBS) TO
#
#####################################################################
#####################################################################
#
# the object files
#
NORMOBJ=rt.o device.no
OPTOBJ=rt.o device.opt$(CPUSUFFIX)
#
#####################################################################
#####################################################################
#
# rules
#
# compile a file normally
#
.c.no:
$(CC) $(NORMCFLAGS) $*.c
-@$(RM) $*.no
@$(MV) $*.o $*.no
#
# compile a file optimizing
#
.c.opt$(CPUSUFFIX):
$(CC) $(OPTCFLAGS) $*.c
-@$(RM) $*.opt$(CPUSUFFIX)
@$(MV) $*.o $*.opt$(CPUSUFFIX)
#
# assemble a file
#
.asm.o:
$(AS) $(AFLAGS) $*.asm
#
#####################################################################
#####################################################################
#
# targets
#
help:
-@Echo "Usage:"
-@Echo "To make an unoptimized version"
-@Echo " $(MAKE) all"
-@Echo "To make an optimized version"
-@Echo " $(MAKE) all_opt"
-@Echo "To install an unoptimized version"
-@Echo " $(MAKE) install"
-@Echo "To install an optimized version"
-@Echo " $(MAKE) install"
-@Echo "To increment the revision"
-@Echo " $(MAKE) newrev"
-@Echo "To remove all intermediate files for unoptimized the version"
-@Echo " $(MAKE) clean_norm"
-@Echo "To remove all intermediate files for optimized the version"
-@Echo " $(MAKE) clean_opt"
-@Echo "To %remove all intermediate files"
-@Echo " %$(MAKE) clean"
-@Echo "To create a distribution"
-@Echo " $(MAKE) release"
all: $(DEVICE_DIR)/$(NAME)
all_opt: $(DEVICE_DIR)/$(NAME).$(CPUSUFFIX)
install: all
$(CP) $(DEVICE_DIR)/$(NAME) $(INSTALL_DIR)/$(NAME)
install_opt: all_opt
$(CP) $(DEVICE_DIR)/$(NAME).$(CPUSUFFIX) $(INSTALL_DIR)/$(NAME)
newrev:
$(BUMPREV) $(VERSION) $(BASENAME)
clean_norm:
-@$(RM) *.o
-@$(RM) *.no
clean_opt:
-@$(RM) *.o
-@$(RM) *.opt*
clean: clean_norm clean_opt
release:
$(MAKE) CPUSUFFIX=000 all_opt
$(MAKE) CPUSUFFIX=020 all_opt
$(MAKE) CPUSUFFIX=040 all_opt
$(BUILD_AMINET) "$(RELNAME)" "$(BASENAME)" "/ReadMe" "//$(BASENAME)" "$(AN_AUTHOR)" "$(AN_UPLOADER)" "$(AN_SHORT)" "$(AN_TYPE)" CLEAN
$(DEVICE_DIR)/$(NAME).$(CPUSUFFIX): $(OPTOBJ)
$(LD) $(OPTOBJ) $(OPTLDFLAGS) $@
$(DEVICE_DIR)/$(NAME): $(NORMOBJ)
$(LD) $(NORMOBJ) $(LDFLAGS) $@
#
#####################################################################
#####################################################################
#
# various dependencies
#
rt.o: rt.asm memory.i memory-device_rev.i
device.opt$(CPUSUFFIX) device.no: device.c memory.h
#
#####################################################################